<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
	http://www.springframework.org/schema/context
	http://www.springframework.org/schema/context/spring-context-3.0.xsd">
	<!--<bean id="taskDAO" class="com.base.task.service.TaskDAO">
		<property name="sessionFactory" ref="sessionFactory" />
	</bean>
	<bean id="taskRunnerJobDetail"
		class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
		<property name="targetObject">
			<ref bean="taskDAO" />
		</property>
		<property name="targetMethod">
			<value>runAvailableTask</value>
		</property>
		<property name="concurrent">
			<value>false</value>
		</property>
	</bean>
	<bean id="taskRunnerTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
		<property name="jobDetail">
			 see the example of method invoking job above 
			<ref bean="taskRunnerJobDetail" />
		</property>
		<property name="cronExpression">
			 依据项目实际需求指定执行时间 
			<value>0 0 0 * * ?</value>
		</property>
	</bean>

	<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
		<property name="triggers">
			<list>
				<ref bean="taskRunnerTrigger" />
			</list>
		</property>
	</bean>

--></beans>